package switchviz.core.mib;

import switchviz.core.SwitchVizException;

public class MIBFacade
{
	public static boolean isPortRequired(String oid) throws SwitchVizException
	{
		MIBDataModel dataModel = getDataModel(oid);
		
		if (dataModel == null)
			throw new SwitchVizException("Error resoling port required from oid '" + oid + "'.");
		
		return dataModel.getPortRequired();
	}
	
	public static MIBDataModel getDataModel(String oid) throws SwitchVizException
	{
		return MIBTree.getDataModel(oid);
	}
}
